package com.example.medical.domain;


public class Equipment {

    private int id;
    private String equipmentName;
    private String equipmentModel;
    private String manufacturer;
    private String purchaseDate;


    // 获取设备编号的方法
    public int getId() {
        return id;
    }

    // 设置设备编号的方法
    public void setId(int id) {
        this.id = id;
    }

    // 获取设备名称的方法
    public String getEquipmentName() {
        return equipmentName;
    }
    // 设置设备名称的方法
    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    // 获取设备型号的方法
    public String getEquipmentModel() {
        return equipmentModel;
    }

    // 设置设备型号的方法
    public void setEquipmentModel(String equipmentModel) {
        this.equipmentModel = equipmentModel;
    }

    // 获取设备制造商的方法
    public String getManufacturer() {
        return manufacturer;
    }

    // 设置设备制造商的方法
    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    // 获取设备采购日期的方法
    public String getPurchaseDate() {
        return purchaseDate;
    }

    // 设置设备采购日期的方法
    public void setPurchaseDate(String purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    // 全参构造方法
    public Equipment(int id, String equipmentName, String equipmentModel, String manufacturer, String purchaseDate, String available) {
        this.id = id;
        this.equipmentName = equipmentName;
        this.equipmentModel = equipmentModel;
        this.manufacturer = manufacturer;
        this.purchaseDate = purchaseDate;
    }

    // 默认无参构造方法
    public Equipment() {
    }

    @Override
    public String toString() {
        return "Equipment{" +
                "id=" + id +
                ", equipmentName='" + equipmentName + '\'' +
                ", equipmentModel='" + equipmentModel + '\'' +
                ", manufacturer='" + manufacturer + '\'' +
                ", purchaseDate='" + purchaseDate + '\'' +
                '}';
    }
}
